package com.zdxk.msgPush.websocket.annotion;

import com.zdxk.msgPush.websocket.annotion.enums.RequestMethod;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface WebsocketRequestMapping {

    //url
    String value();

    //默认为GET
    RequestMethod method() default RequestMethod.DEFAULT;

    //是否需要身份验证
    boolean auth() default true;
}
